package com.yicong.ants.bean.me;

import com.yicong.ants.bean.ad.AntsAd;



/**
 * @author cch
 * @version 2020/7/16
 */

public class EnergyTask extends AntsAd {
    String tip;
    String tip_image;
    int ad_reward_channel; // 激励视频的播放渠道

    public EnergyTask() {
    }

    public String getTip() {
        return this.tip;
    }

    public String getTip_image() {
        return this.tip_image;
    }

    public int getAd_reward_channel() {
        return this.ad_reward_channel;
    }

    public EnergyTask setTip(String tip) {
        this.tip = tip;
        return this;
    }

    public EnergyTask setTip_image(String tip_image) {
        this.tip_image = tip_image;
        return this;
    }

    public EnergyTask setAd_reward_channel(int ad_reward_channel) {
        this.ad_reward_channel = ad_reward_channel;
        return this;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof EnergyTask)) return false;
        final EnergyTask other = (EnergyTask) o;
        if (!other.canEqual((Object) this)) return false;
        if (!super.equals(o)) return false;
        final Object this$tip = this.getTip();
        final Object other$tip = other.getTip();
        if (this$tip == null ? other$tip != null : !this$tip.equals(other$tip)) return false;
        final Object this$tip_image = this.getTip_image();
        final Object other$tip_image = other.getTip_image();
        if (this$tip_image == null ? other$tip_image != null : !this$tip_image.equals(other$tip_image))
            return false;
        if (this.getAd_reward_channel() != other.getAd_reward_channel()) return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof EnergyTask;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = super.hashCode();
        final Object $tip = this.getTip();
        result = result * PRIME + ($tip == null ? 43 : $tip.hashCode());
        final Object $tip_image = this.getTip_image();
        result = result * PRIME + ($tip_image == null ? 43 : $tip_image.hashCode());
        result = result * PRIME + this.getAd_reward_channel();
        return result;
    }

    public String toString() {
        return "EnergyTask(tip=" + this.getTip() + ", tip_image=" + this.getTip_image() + ", ad_reward_channel=" + this.getAd_reward_channel() + ")";
    }
}
